package com.chushouya.order.dto.api.orderclothesproduct;

import com.chushouya.order.dto.api.order.AccountInfoApiDTO;
import com.chushouya.order.dto.api.order.OrderAddressApiDTO;
import com.chushouya.order.dto.api.order.OrderExtendApiDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel("订单旧衣商品提交")
public class OrderClothesSubmitDTO {

    @ApiModelProperty("重量范围")
    private String weightRange;

    @ApiModelProperty(value = "用户地址", required = true)
    private OrderAddressApiDTO addressInfo;

    @ApiModelProperty(value = "订单额外信息", required = false)
    private OrderExtendApiDTO extendInfo;

    @ApiModelProperty(value = "账户信息", required = false)
    private AccountInfoApiDTO accountInfo;

    @ApiModelProperty(value = "预约开始时间", required = true, example = "2025-1-1 00:00:00")
    @NotNull(message = "预约开始时间不能为空")
    private Date appointStartTime;

    @ApiModelProperty(value = "预约结束时间", required = true, example = "2025-1-1 00:00:00")
    @NotNull(message = "预约结束时间不能为空")
    private Date appointEndTime;

    @ApiModelProperty(value = "渠道来源", required = false)
    private String channel;

    @ApiModelProperty(value = "订单备注", example = "请小心包装")
    private String remark;
}
